local QI = DailyIntake.QuestItems;
local Localize = DailyIntake.Localize;

-- Add item: Anuniaq's Net; http://www.wowhead.com/?item=40946
local function AnuniaqsNet()
    return not UnitOnTaxi("player")

        -- must not have completed the quest yet
        and not QI.QuestIsDone(11472) -- The Way to His Heart... (http://www.wowhead.com/?quest=11472)

        -- must be in propper area
        and GetZoneText() == Localize("Howling Fjord")
        and QI.PlayerIsInArea(0.68, 0.26, 0.80, 0.37);

end;
QI.RegisterQuestItem(40946, QI.Priority.Lower, AnuniaqsNet);

-- Add item: Tasty Reef Fish; http://www.wowhead.com/?item=34127
local function TastyReefFish()
    return not UnitOnTaxi("player")

        -- must not have completed the quest yet
        and not QI.QuestIsDone(11472) -- The Way to His Heart... (http://www.wowhead.com/?quest=11472)

        -- must target on of these
        and not QI.UnitIsTappedByOtherPlayer("target")
        and (QI.UnitIsEntity("target", 24786, QI.Entity.Mob) or -- Reef Bull (http://www.wowhead.com/?npc=24786)
             QI.UnitIsEntity("target", 24804, QI.Entity.Mob)    -- Attracted Reef Bull (http://www.wowhead.com/?npc=24804)
             );
end;
QI.RegisterQuestItem(34127, QI.Priority.High, TastyReefFish);

-- Add item: Petrov's Cluster Bombs; http://www.wowhead.com/?item=33098
local function PetrovsClusterBombs()
    return not UnitOnTaxi("player")

        -- must not have completed the quest yet
        and not QI.QuestIsDone(11153) -- Break the Blockade (http://www.wowhead.com/?quest=11153)

        -- must be in propper area
        and GetZoneText() == Localize("Howling Fjord")
        and QI.PlayerIsInArea(0.32, 0.12, 0.54, 0.23);
end;
QI.RegisterQuestItem(33098, QI.Priority.Normal, PetrovsClusterBombs);

-- Add item: Everburning Ember; http://www.wowhead.com/?item=45005
local function EverburningEmber()
    return not UnitOnTaxi("player")

        -- must not have completed the quest yet
        and QI.QuestsAreDone(13770, 13764, 13775, 13780, 13785, 13759, 13754, 13670, 13675, 13743, 13748, 13616) == 0

        -- must target proper unit
        and QI.UnitIsEntity("target", 33303, QI.Entity.Mob);
end;
QI.RegisterQuestItem(45005, QI.Priority.Highest, EverburningEmber);

